import 'package:flutter/material.dart';

class StatusBar extends StatelessWidget {
  const StatusBar({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: MediaQuery.of(context).padding.top,
      color: Colors.transparent,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          // 时间显示
          Padding(
            padding: const EdgeInsets.only(left: 16),
            child: Text(
              '9:41',
              style: Theme.of(context).textTheme.bodyMedium?.copyWith(
                color: Colors.white,
                fontWeight: FontWeight.w600,
              ),
            ),
          ),
          // 右侧状态图标
          Padding(
            padding: const EdgeInsets.only(right: 16),
            child: Row(
              children: [
                // WiFi图标
                Icon(Icons.wifi, color: Colors.white, size: 16),
                const SizedBox(width: 4),
                // 信号图标
                Icon(
                  Icons.signal_cellular_4_bar,
                  color: Colors.white,
                  size: 16,
                ),
                const SizedBox(width: 4),
                // 电池图标
                Icon(Icons.battery_full, color: Colors.white, size: 16),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
